package com.fjp.heartguard.viewmodel

import androidx.lifecycle.MutableLiveData
import com.fjp.heartguard.app.base.HTBaseViewModel
import com.fjp.heartguard.app.data.bean.Message
import com.fjp.heartguard.app.network.HttpRequestCoroutine
import me.hgj.jetpackmvvm.ext.request
import me.hgj.jetpackmvvm.state.ResultState

class MessageViewModel : HTBaseViewModel() {
    var messageListResult = MutableLiveData<ResultState<ArrayList<Message>>>()

    fun getMessageList() {
        request({
            HttpRequestCoroutine.getMessageList()
        }, messageListResult, false)

    }
}